<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <link rel="stylesheet" href="../day06/cssReset.css">
    <style>
        .box {
            height: 400px;
            background-color: yellowgreen;
            /*使用flex布局*/
            display: flex;
            /*简写排列方向和是否换行*/
            /*      排列方向  是否换行*/
            flex-flow: row wrap;
            /***********************项目在主轴上的对齐方式*****************/
            /*起点对齐
            justify-content: flex-start;*/
            /*终点对齐
            justify-content: flex-end;*/
            /*中间对齐
            justify-content: center;*/
            /*两端对齐*/
            justify-content: space-between;
            /*两端的距离是两元素中间距离的一半(两端有缝，中间一边宽)
            justify-content: space-around;*/
            /***********************交叉轴对齐方式**********************/
            /*起点对齐
            align-items: flex-start;*/
            /*终点对齐
            align-items: flex-end;*/
            /*中间对齐
            align-items: center;*/
            /*基线对齐
            align-items: baseline;*/
            /*默认值
            align-items: stretch;*/
            /**************************多轴线对齐方式************************/
            align-content: flex-start;
            align-content: flex-end;
            align-content: center;
            align-content: space-between;
            align-content: space-around;
        }
        /*项目  是放在容器中的*/
        
        .item {
            width: 200px;
            height: 100px;
            border: 3px solid black;
            background-color: red;
        }
        /*结构性伪类
        
        .box>.item:nth-child(1) {
            font-size: 20px;
        }
        
        .box>.item:nth-child(2) {
            font-size: 16px;
        }
        
        .box>.item:nth-child(3) {
            font-size: 20px;
        }
        
        .box>.item:nth-child(4) {
            font-size: 16px;
        }*/
    </style>
</head>

<body>
    <div class="part">
        <div class="center">
            <div class="box">
                <div class="item"></div>
                <div class="item">Lorem ipsum dolor sit amet consectetur adipisicing elit. Earum ab eaque similique illo pariatur molestiae autem expedita ipsam </div>
                <div class="item">Lorem ipsum dolor sit amet consectetur adipisicing elit. Beatae soluta assumenda est dolore minus nisi inventore quod facere quam</div>
                <div class="item">Lorem ipsum dolor sit amet consectetur adipisicing elit. Blanditiis sunt facere est ab fuga ipsa quia fugit </div>
                <div class="item">Lorem ipsum dolor sit amet consectetur adipisicing elit. Blanditiis sunt facere est ab fuga ipsa quia fugit </div>
                <div class="item">Lorem ipsum dolor sit amet consectetur adipisicing elit. Blanditiis sunt facere est ab fuga ipsa quia fugit </div>
            </div>
        </div>
    </div>

</body>

</html>